package com.google.android.gms.internal;

import java.io.IOException;

public final class zzflw extends zzflm<zzflw> {
    public String url = null;
    public Integer zzbdh = null;
    private Integer zzpwf = null;
    public String zzpwg = null;
    private String zzpwh = null;
    public zzflx zzpwi = null;
    public zzfme[] zzpwj = zzfme.zzdct();
    public String zzpwk = null;
    public zzfmd zzpwl = null;
    private Boolean zzpwm = null;
    private String[] zzpwn = zzflv.EMPTY_STRING_ARRAY;
    private String zzpwo = null;
    private Boolean zzpwp = null;
    private Boolean zzpwq = null;
    private byte[] zzpwr = null;
    public zzfmf zzpws = null;

    public zzflw() {
        this.zzpvl = null;
        this.zzpnr = -1;
    }

    /* access modifiers changed from: private */
    /* JADX WARNING: Can't fix incorrect switch cases order */
    /* renamed from: zzbk */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final com.google.android.gms.internal.zzflw zza(com.google.android.gms.internal.zzflj r7) throws java.io.IOException {
        /*
            r6 = this;
        L_0x0000:
            int r0 = r7.zzcxx()
            r1 = 0
            switch(r0) {
                case 0: goto L_0x0163;
                case 10: goto L_0x015b;
                case 18: goto L_0x0153;
                case 26: goto L_0x014b;
                case 34: goto L_0x010b;
                case 40: goto L_0x00ff;
                case 50: goto L_0x00cb;
                case 58: goto L_0x00c3;
                case 64: goto L_0x00b7;
                case 72: goto L_0x00ab;
                case 80: goto L_0x0076;
                case 88: goto L_0x004a;
                case 98: goto L_0x0039;
                case 106: goto L_0x0032;
                case 114: goto L_0x0024;
                case 122: goto L_0x001d;
                case 138: goto L_0x000f;
                default: goto L_0x0008;
            }
        L_0x0008:
            boolean r0 = super.zza(r7, r0)
            if (r0 != 0) goto L_0x0000
            return r6
        L_0x000f:
            com.google.android.gms.internal.zzfmf r0 = r6.zzpws
            if (r0 != 0) goto L_0x001a
            com.google.android.gms.internal.zzfmf r0 = new com.google.android.gms.internal.zzfmf
            r0.<init>()
            r6.zzpws = r0
        L_0x001a:
            com.google.android.gms.internal.zzfmf r0 = r6.zzpws
            goto L_0x0046
        L_0x001d:
            byte[] r0 = r7.readBytes()
            r6.zzpwr = r0
            goto L_0x0000
        L_0x0024:
            com.google.android.gms.internal.zzfmd r0 = r6.zzpwl
            if (r0 != 0) goto L_0x002f
            com.google.android.gms.internal.zzfmd r0 = new com.google.android.gms.internal.zzfmd
            r0.<init>()
            r6.zzpwl = r0
        L_0x002f:
            com.google.android.gms.internal.zzfmd r0 = r6.zzpwl
            goto L_0x0046
        L_0x0032:
            java.lang.String r0 = r7.readString()
            r6.zzpwk = r0
            goto L_0x0000
        L_0x0039:
            com.google.android.gms.internal.zzflx r0 = r6.zzpwi
            if (r0 != 0) goto L_0x0044
            com.google.android.gms.internal.zzflx r0 = new com.google.android.gms.internal.zzflx
            r0.<init>()
            r6.zzpwi = r0
        L_0x0044:
            com.google.android.gms.internal.zzflx r0 = r6.zzpwi
        L_0x0046:
            r7.zza(r0)
            goto L_0x0000
        L_0x004a:
            int r1 = r7.getPosition()
            int r2 = r7.zzcya()     // Catch:{ IllegalArgumentException -> 0x00a3 }
            switch(r2) {
                case 0: goto L_0x0058;
                case 1: goto L_0x0058;
                case 2: goto L_0x0058;
                case 3: goto L_0x0058;
                case 4: goto L_0x0058;
                default: goto L_0x0055;
            }     // Catch:{ IllegalArgumentException -> 0x00a3 }
        L_0x0055:
            java.lang.IllegalArgumentException r3 = new java.lang.IllegalArgumentException     // Catch:{ IllegalArgumentException -> 0x00a3 }
            goto L_0x005f
        L_0x0058:
            java.lang.Integer r2 = java.lang.Integer.valueOf(r2)     // Catch:{ IllegalArgumentException -> 0x00a3 }
            r6.zzpwf = r2     // Catch:{ IllegalArgumentException -> 0x00a3 }
            goto L_0x0000
        L_0x005f:
            r4 = 39
            java.lang.StringBuilder r5 = new java.lang.StringBuilder     // Catch:{ IllegalArgumentException -> 0x00a3 }
            r5.<init>(r4)     // Catch:{ IllegalArgumentException -> 0x00a3 }
            r5.append(r2)     // Catch:{ IllegalArgumentException -> 0x00a3 }
            java.lang.String r2 = " is not a valid enum Verdict"
            r5.append(r2)     // Catch:{ IllegalArgumentException -> 0x00a3 }
            java.lang.String r2 = r5.toString()     // Catch:{ IllegalArgumentException -> 0x00a3 }
            r3.<init>(r2)     // Catch:{ IllegalArgumentException -> 0x00a3 }
            throw r3     // Catch:{ IllegalArgumentException -> 0x00a3 }
        L_0x0076:
            int r1 = r7.getPosition()
            int r2 = r7.zzcya()     // Catch:{ IllegalArgumentException -> 0x00a3 }
            switch(r2) {
                case 0: goto L_0x0084;
                case 1: goto L_0x0084;
                case 2: goto L_0x0084;
                case 3: goto L_0x0084;
                case 4: goto L_0x0084;
                case 5: goto L_0x0084;
                case 6: goto L_0x0084;
                case 7: goto L_0x0084;
                case 8: goto L_0x0084;
                case 9: goto L_0x0084;
                default: goto L_0x0081;
            }     // Catch:{ IllegalArgumentException -> 0x00a3 }
        L_0x0081:
            java.lang.IllegalArgumentException r3 = new java.lang.IllegalArgumentException     // Catch:{ IllegalArgumentException -> 0x00a3 }
            goto L_0x008c
        L_0x0084:
            java.lang.Integer r2 = java.lang.Integer.valueOf(r2)     // Catch:{ IllegalArgumentException -> 0x00a3 }
            r6.zzbdh = r2     // Catch:{ IllegalArgumentException -> 0x00a3 }
            goto L_0x0000
        L_0x008c:
            r4 = 42
            java.lang.StringBuilder r5 = new java.lang.StringBuilder     // Catch:{ IllegalArgumentException -> 0x00a3 }
            r5.<init>(r4)     // Catch:{ IllegalArgumentException -> 0x00a3 }
            r5.append(r2)     // Catch:{ IllegalArgumentException -> 0x00a3 }
            java.lang.String r2 = " is not a valid enum ReportType"
            r5.append(r2)     // Catch:{ IllegalArgumentException -> 0x00a3 }
            java.lang.String r2 = r5.toString()     // Catch:{ IllegalArgumentException -> 0x00a3 }
            r3.<init>(r2)     // Catch:{ IllegalArgumentException -> 0x00a3 }
            throw r3     // Catch:{ IllegalArgumentException -> 0x00a3 }
        L_0x00a3:
            r7.zzmw(r1)
            r6.zza(r7, r0)
            goto L_0x0000
        L_0x00ab:
            boolean r0 = r7.zzcyd()
            java.lang.Boolean r0 = java.lang.Boolean.valueOf(r0)
            r6.zzpwq = r0
            goto L_0x0000
        L_0x00b7:
            boolean r0 = r7.zzcyd()
            java.lang.Boolean r0 = java.lang.Boolean.valueOf(r0)
            r6.zzpwp = r0
            goto L_0x0000
        L_0x00c3:
            java.lang.String r0 = r7.readString()
            r6.zzpwo = r0
            goto L_0x0000
        L_0x00cb:
            r0 = 50
            int r0 = com.google.android.gms.internal.zzflv.zzb(r7, r0)
            java.lang.String[] r2 = r6.zzpwn
            if (r2 != 0) goto L_0x00d7
            r2 = r1
            goto L_0x00da
        L_0x00d7:
            java.lang.String[] r2 = r6.zzpwn
            int r2 = r2.length
        L_0x00da:
            int r0 = r0 + r2
            java.lang.String[] r0 = new java.lang.String[r0]
            if (r2 == 0) goto L_0x00e4
            java.lang.String[] r3 = r6.zzpwn
            java.lang.System.arraycopy(r3, r1, r0, r1, r2)
        L_0x00e4:
            int r1 = r0.length
            int r1 = r1 + -1
            if (r2 >= r1) goto L_0x00f5
            java.lang.String r1 = r7.readString()
            r0[r2] = r1
            r7.zzcxx()
            int r2 = r2 + 1
            goto L_0x00e4
        L_0x00f5:
            java.lang.String r1 = r7.readString()
            r0[r2] = r1
            r6.zzpwn = r0
            goto L_0x0000
        L_0x00ff:
            boolean r0 = r7.zzcyd()
            java.lang.Boolean r0 = java.lang.Boolean.valueOf(r0)
            r6.zzpwm = r0
            goto L_0x0000
        L_0x010b:
            r0 = 34
            int r0 = com.google.android.gms.internal.zzflv.zzb(r7, r0)
            com.google.android.gms.internal.zzfme[] r2 = r6.zzpwj
            if (r2 != 0) goto L_0x0117
            r2 = r1
            goto L_0x011a
        L_0x0117:
            com.google.android.gms.internal.zzfme[] r2 = r6.zzpwj
            int r2 = r2.length
        L_0x011a:
            int r0 = r0 + r2
            com.google.android.gms.internal.zzfme[] r0 = new com.google.android.gms.internal.zzfme[r0]
            if (r2 == 0) goto L_0x0124
            com.google.android.gms.internal.zzfme[] r3 = r6.zzpwj
            java.lang.System.arraycopy(r3, r1, r0, r1, r2)
        L_0x0124:
            int r1 = r0.length
            int r1 = r1 + -1
            if (r2 >= r1) goto L_0x013b
            com.google.android.gms.internal.zzfme r1 = new com.google.android.gms.internal.zzfme
            r1.<init>()
            r0[r2] = r1
            r1 = r0[r2]
            r7.zza(r1)
            r7.zzcxx()
            int r2 = r2 + 1
            goto L_0x0124
        L_0x013b:
            com.google.android.gms.internal.zzfme r1 = new com.google.android.gms.internal.zzfme
            r1.<init>()
            r0[r2] = r1
            r1 = r0[r2]
            r7.zza(r1)
            r6.zzpwj = r0
            goto L_0x0000
        L_0x014b:
            java.lang.String r0 = r7.readString()
            r6.zzpwh = r0
            goto L_0x0000
        L_0x0153:
            java.lang.String r0 = r7.readString()
            r6.zzpwg = r0
            goto L_0x0000
        L_0x015b:
            java.lang.String r0 = r7.readString()
            r6.url = r0
            goto L_0x0000
        L_0x0163:
            return r6
        */
        throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.zzflw.zza(com.google.android.gms.internal.zzflj):com.google.android.gms.internal.zzflw");
    }

    public final void zza(zzflk zzflk) throws IOException {
        if (this.url != null) {
            zzflk.zzp(1, this.url);
        }
        if (this.zzpwg != null) {
            zzflk.zzp(2, this.zzpwg);
        }
        if (this.zzpwh != null) {
            zzflk.zzp(3, this.zzpwh);
        }
        if (this.zzpwj != null && this.zzpwj.length > 0) {
            for (zzfme zzfme : this.zzpwj) {
                if (zzfme != null) {
                    zzflk.zza(4, (zzfls) zzfme);
                }
            }
        }
        if (this.zzpwm != null) {
            zzflk.zzl(5, this.zzpwm.booleanValue());
        }
        if (this.zzpwn != null && this.zzpwn.length > 0) {
            for (String str : this.zzpwn) {
                if (str != null) {
                    zzflk.zzp(6, str);
                }
            }
        }
        if (this.zzpwo != null) {
            zzflk.zzp(7, this.zzpwo);
        }
        if (this.zzpwp != null) {
            zzflk.zzl(8, this.zzpwp.booleanValue());
        }
        if (this.zzpwq != null) {
            zzflk.zzl(9, this.zzpwq.booleanValue());
        }
        if (this.zzbdh != null) {
            zzflk.zzad(10, this.zzbdh.intValue());
        }
        if (this.zzpwf != null) {
            zzflk.zzad(11, this.zzpwf.intValue());
        }
        if (this.zzpwi != null) {
            zzflk.zza(12, (zzfls) this.zzpwi);
        }
        if (this.zzpwk != null) {
            zzflk.zzp(13, this.zzpwk);
        }
        if (this.zzpwl != null) {
            zzflk.zza(14, (zzfls) this.zzpwl);
        }
        if (this.zzpwr != null) {
            zzflk.zzc(15, this.zzpwr);
        }
        if (this.zzpws != null) {
            zzflk.zza(17, (zzfls) this.zzpws);
        }
        super.zza(zzflk);
    }

    /* access modifiers changed from: protected */
    public final int zzq() {
        int zzq = super.zzq();
        if (this.url != null) {
            zzq += zzflk.zzq(1, this.url);
        }
        if (this.zzpwg != null) {
            zzq += zzflk.zzq(2, this.zzpwg);
        }
        if (this.zzpwh != null) {
            zzq += zzflk.zzq(3, this.zzpwh);
        }
        if (this.zzpwj != null && this.zzpwj.length > 0) {
            int i = zzq;
            for (zzfme zzfme : this.zzpwj) {
                if (zzfme != null) {
                    i += zzflk.zzb(4, (zzfls) zzfme);
                }
            }
            zzq = i;
        }
        if (this.zzpwm != null) {
            this.zzpwm.booleanValue();
            zzq += zzflk.zzlw(5) + 1;
        }
        if (this.zzpwn != null && this.zzpwn.length > 0) {
            int i2 = 0;
            int i3 = 0;
            for (String str : this.zzpwn) {
                if (str != null) {
                    i3++;
                    i2 += zzflk.zztx(str);
                }
            }
            zzq = zzq + i2 + (i3 * 1);
        }
        if (this.zzpwo != null) {
            zzq += zzflk.zzq(7, this.zzpwo);
        }
        if (this.zzpwp != null) {
            this.zzpwp.booleanValue();
            zzq += zzflk.zzlw(8) + 1;
        }
        if (this.zzpwq != null) {
            this.zzpwq.booleanValue();
            zzq += zzflk.zzlw(9) + 1;
        }
        if (this.zzbdh != null) {
            zzq += zzflk.zzag(10, this.zzbdh.intValue());
        }
        if (this.zzpwf != null) {
            zzq += zzflk.zzag(11, this.zzpwf.intValue());
        }
        if (this.zzpwi != null) {
            zzq += zzflk.zzb(12, (zzfls) this.zzpwi);
        }
        if (this.zzpwk != null) {
            zzq += zzflk.zzq(13, this.zzpwk);
        }
        if (this.zzpwl != null) {
            zzq += zzflk.zzb(14, (zzfls) this.zzpwl);
        }
        if (this.zzpwr != null) {
            zzq += zzflk.zzd(15, this.zzpwr);
        }
        return this.zzpws != null ? zzq + zzflk.zzb(17, (zzfls) this.zzpws) : zzq;
    }
}
